package com.itheima.lw;

import com.itheima.lw.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-serviced")
public interface UserFeignApi {
    @GetMapping("/user/{id}")
    public User findById(@PathVariable("id") String username);

}
